package com.hqyj.am.controller;


import com.hqyj.am.pojo.ResultVo;
import com.hqyj.am.service.IPowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author rock
 * @since 2022-08-25
 */
@RestController
@RequestMapping("/power")
public class PowerController {
    @Autowired
    IPowerService iPowerService;

    @GetMapping("/queryByName")
    public ResultVo queryByName(String userName) {
        return iPowerService.queryByName(userName);

    }

}

